<?php
  
  
  class format {
      
      
      
      /**
      * formatiert eine Zahl
      * 
      * @param string $number
      * @param mixed $decimal
      * @return string
      */
      function formatNumber($number, $decimal = 0) {
          
          $number = number_format ($number, $decimal , "." , "'");   
          
          return $number;
          
          
      }
      
      
      
      
      
      
      
      
      
  }
  
  
?>
